
#include <iostream>
#include <iomanip>

#include "Reference.h"
#include "Report.h"
#include "Thesis.h"

using std::cout;
using std::endl;

int main (int argc, char * const argv[]) 
{  
 
 /* Creation of three objects instance of the class Report named T1, T2 and T3 */
 Thesis* T1 = new Thesis ();
 Thesis* T2 = new Thesis ();
 Thesis* T3 = new Thesis ();
 
 /* Test of the funcion "print", testing thus the following functions : { "getId", "getAuthor", "getTitle" "getDepartment", "getInstitution" "getNumberOfPages", and "getYearOfPublicaton" }*/
 cout << "* Let's test the Thesis's data members by giving them their default values, then we find : " <<endl;
 T1->print();
 T2->print();
 T3->print();
 
 T1->setId(5427);
 T1->setYearOfPublication(1975);
 T1->setAuthor(" Hamza SHAWY ");
 T1->setTitle(" THE MYSTERIOUS KNOWLEDGE  "); 
 T1->setDepartment(" KNOWLEDGES  ");
 T1->setInstitution(" THE KNOWLEDGE'S INSTITUTION "); 
 T1->setNumberOfPages(17);
 T1->setSupervisor (" Mr DUMONT ");
 T1->setDegree(" PHILOSOPHY ");
 
 T2->setId(01654);
 T2->setYearOfPublication(1989);
 T2->setAuthor(" Jonathan SCHRODER ");
 T2->setTitle(" HIGH HOPES ");
 T2->setDepartment(" FEELINGS ");
 T2->setInstitution(" THE FEELING'S INSTITUTION "); 
 T2->setNumberOfPages(29);
 T2->setSupervisor(" Mr FORTIN ");
 T2->setDegree(" PSYCHOLOGY ");
 
 T3->setId(3069);
 T3->setYearOfPublication(2002);
 T3->setAuthor(" Issa FORTIN ");
 T3->setTitle(" THEIR PARADISE  ");
 T3->setDepartment(" BELIEVES ");
 T3->setInstitution(" THE BELIEVE'S INSTITUTION  "); 
 T3->setNumberOfPages(8);
 T3->setSupervisor(" Mme LILA ");
 T3->setDegree(" RELIGION ");
 
 cout << "* Then, let's give values to the attributs of the class Thesis ! We find thus : " <<endl;
 T1->print();
 T2->print();
 T3->print();
 
 #ifdef WIN32
 system("PAUSE");
 #endif
 
 return 0;
 }
